package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Daily;
import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface DailyMapper {
    /**
     * 新增日报
     * @param record
     * @return
     */
    int insert(Daily record);

    /**
     * 查询单条日报
     * @param id
     * @return
     */
    Daily selectByPrimaryKey(Long id);

    /**
     * 查询所有日报
     * @return
     */
    List<Daily> selectAll();

    /**
     * 更新日报
     * @param record
     * @return
     */
    int updateByPrimaryKey(Daily record);

    List<Strategy> selectForList(QueryObject qo);

    List<Daily> selectDailysById(Integer userId);
}